﻿using System;

namespace Game.WeaponComponent {
    public abstract class ABSWeaponComponent : IWeaponComponent {
        protected ABSWeaponCombinant mCurCombinant;//组件挂载的武器

        public ABSWeaponComponent(ABSWeaponCombinant combinant) {
            mCurCombinant = combinant;
        }
        
        public void Trigger() {
            onTrigger();
        }

        protected virtual void onTrigger() { }

        protected virtual void onTriggerEnd() {
            mCurCombinant.TriggerCount();
        }
    }
}